<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "MainPageComponent",
  methods:{
    loginSuccessRouter(){
      this.$router.push("/App");
    },
    loginOutRouter(){
      this.$router.push("/Login");
    }
  },
  mounted(){
    this.$on("loginSuccessEvent",this.loginSuccessRouter);
    this.$on("loginOutEvent",this.loginOutRouter);
  }
}
</script>

<style scoped>

</style>